<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>类选择器、id选择器、复合选择器、通配符选择器</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1 class="red">一级标题（类选择器）</h1>
    <h1 id="green">一级标题（id选择器）</h1>
    <div class="red" id="green">我的div（class在前，id在后）</div>
    <div id="green" class="red">我的div（id在前，class在后）</div>
    <!-- 列表标签(内部标签为li)：ul：无序列表
                                ol:有序列表 -->
    <ul>
        <li>111</li>
        <li>222</li>
        <li><a href="#">333</a></li>
    </ul>

    <ol>
        <li>111</li>
        <li>222</li>
    </ol>
    
    <div>总结：优先级：id>class>通配符</div>
</body>
</html>